/*************************************************************************
	> File Name: 002.判断数字在十进制下是否为回文数字.c
	> Author: Maureen 
	> Mail: Maureen@qq.com 
	> Created Time: 日  8/22 20:01:26 2021
 ************************************************************************/

#include <stdio.h>

int isPalindrome(int n) {
    if (n < 0) return 0;
    int sum = 0, x = n;
    while (x) {
        sum = sum * 10 + x % 10;
        x /= 10;
    }
    return sum == n;
}

int main() {
    int n;
    scanf("%d", &n);
    if (isPalindrome(n)) printf("Yes\n");
    else printf("No\n");

    return 0;
}
